package br.com.news.utils.database.interfaces;

import java.io.Serializable;
import java.util.List;

import br.com.news.utils.beans.BaseBean;
import br.com.news.utils.database.exception.DataBaseServiceException;

public interface IServiceBaseDb<T extends BaseBean, ID extends Serializable> {

	T findById(ID id) throws DataBaseServiceException;

	List<T> findAll() throws DataBaseServiceException;

	ID insert(T bean) throws DataBaseServiceException;

	void update(T bean) throws DataBaseServiceException;

	void delete(T bean) throws DataBaseServiceException;

}
